package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 luntai_order
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class LuntaiOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 来源id */
    @Excel(name = "来源id")
    private Integer sourceId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderSn;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal amount;

    /** 支付方式 1线下 2线上，默认线下给钱 */
    @Excel(name = "支付方式 1线下 2线上，默认线下给钱")
    private Integer payType;

    /** 优惠券id */
    @Excel(name = "优惠券id")
    private Integer couponId;

    /** 是否使用优惠券 */
    @Excel(name = "是否使用优惠券")
    private Integer isUseCoupon;

    /** 处理人id */
    @Excel(name = "处理人id")
    private Integer adminId;

    /** 门店id */
    @Excel(name = "门店id")
    private Integer storeId;

    /** 订单类型 1延保 2鼓包 3救援 0其他 */
    @Excel(name = "订单类型 1延保 2鼓包 3救援 0其他")
    private Integer type;

    /** 补充信息 */
    @Excel(name = "补充信息")
    private String ext;

    /** 订单状态 0待提交 1待支付 2已完成 3已取消 */
    @Excel(name = "订单状态 0待提交 1待支付 2已完成 3已取消")
    private Integer status;

    /** 是否删除 0否1是 */
    @Excel(name = "是否删除 0否1是")
    private Integer isdelete;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setSourceId(Integer sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Integer getSourceId() 
    {
        return sourceId;
    }
    public void setOrderSn(String orderSn) 
    {
        this.orderSn = orderSn;
    }

    public String getOrderSn() 
    {
        return orderSn;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setPayType(Integer payType) 
    {
        this.payType = payType;
    }

    public Integer getPayType() 
    {
        return payType;
    }
    public void setCouponId(Integer couponId) 
    {
        this.couponId = couponId;
    }

    public Integer getCouponId() 
    {
        return couponId;
    }
    public void setIsUseCoupon(Integer isUseCoupon) 
    {
        this.isUseCoupon = isUseCoupon;
    }

    public Integer getIsUseCoupon() 
    {
        return isUseCoupon;
    }
    public void setAdminId(Integer adminId) 
    {
        this.adminId = adminId;
    }

    public Integer getAdminId() 
    {
        return adminId;
    }
    public void setStoreId(Integer storeId) 
    {
        this.storeId = storeId;
    }

    public Integer getStoreId() 
    {
        return storeId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setExt(String ext) 
    {
        this.ext = ext;
    }

    public String getExt() 
    {
        return ext;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setIsdelete(Integer isdelete) 
    {
        this.isdelete = isdelete;
    }

    public Integer getIsdelete() 
    {
        return isdelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("sourceId", getSourceId())
            .append("orderSn", getOrderSn())
            .append("amount", getAmount())
            .append("payType", getPayType())
            .append("couponId", getCouponId())
            .append("isUseCoupon", getIsUseCoupon())
            .append("adminId", getAdminId())
            .append("storeId", getStoreId())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .append("ext", getExt())
            .append("status", getStatus())
            .append("isdelete", getIsdelete())
            .toString();
    }
}
